package com.jokey.vue.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jokey.vue.dto.EmpPageReq;
import com.jokey.vue.model.Employee;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author: JokeyZheng
 * @email: zhengjingfeng@ruqimobility.com
 * @created: 2021/11/25 21:02
 * @version: v1.0.0
 */
@Component
public interface EmployeeMapper extends BaseMapper<Employee> {
	
	/**
	 * 获取最大工号
	 *
	 * @return
	 */
	Integer maxWorkId();
	
	/**
	 * 获取列表
	 *
	 * @param pageReq
	 * @return
	 */
	List<Employee> getEmployeeList(@Param("emp") EmpPageReq pageReq);
	
}
